package com.jam.cloud.order;

import com.jam.cloud.order.config.LoadBalancerConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.loadbalancer.core.RoundRobinLoadBalancer;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@MapperScan("com.jam.cloud.order.mapper")
@SpringBootApplication
//@EnableEurekaClient
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }


//    @Bean //ribbon在何时拉取eureka的服务列表的 这是netflex包下的负载  已经被spring 的loadbalancer取代
//    public IRule randomRule(){
//        return new RandomRule();
//    }

}
